package com.webshop.JavaBean;

/**
 * CREATE TABLE `goods_attr`  (
 `ID` int(11) NOT NULL AUTO_INCREMENT,
 `ProductID` int(11) NOT NULL,
 `Attribute` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `oldPrice` decimal(20, 2) NOT NULL,
 `newPrice` decimal(20, 2) NOT NULL,
 `stock` int(10) NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

 */
public class Goods_attr {
    int ID;
    int ProductID;
    String color;

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    String productname;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    String size;

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getProductID() {
        return ProductID;
    }

    public void setProductID(int productID) {
        ProductID = productID;
    }

    public double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public double getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(double newPrice) {
        this.newPrice = newPrice;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    double oldPrice;
    double newPrice;
    int stock;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    String path;

    @Override
    public String toString() {
        return "Goods_attr{" +
                "ID=" + ID +
                ", ProductID=" + ProductID +
                ", color='" + color + '\'' +
                ", productname='" + productname + '\'' +
                ", size='" + size + '\'' +
                ", oldPrice=" + oldPrice +
                ", newPrice=" + newPrice +
                ", stock=" + stock +
                ", path='" + path + '\'' +
                '}';
    }
}
